package com.hjl.spring.hom.hardDisk;

/**
 * @author ServivE
 * @version 0.1
 * @className Computer
 * @description
 * @date 2024/8/5 11:41
 * @since jdk11
 */
import lombok.AllArgsConstructor;
import lombok.NoArgsConstructor;
import lombok.Setter;

/**
 * 计算机类 组装主机和显示器 显示主机信息
 */
@Setter
@NoArgsConstructor
@AllArgsConstructor
public class Computer {


    private HardDisk hardDisk;
    private Display display;
    private Power power;
    public void printComputerInfo() {
        System.out.println("电脑的详细信息");
        hardDisk.hardDiskType();
        display.printDisplayInfo();
        power.printPowerInfo();
    }
}
